<template>
  <van-sticky>
    <van-nav-bar title="消息" @click-left="router.back()">
      <template #left v-if="route.path !=='/message'" >
        <van-icon name="arrow-left" size="20"/>
      </template>
    </van-nav-bar>
  </van-sticky>
  <Message/>
  <Main/>
</template>

<script setup>
import Message from "@/components/Message/Message.vue"
import Main from "@/views/index.vue"
import {onMounted} from "vue"
import emitter from "@/utils/bus";
import {useRouter, useRoute} from "vue-router"

onMounted(()=>{
  emitter.emit('updateActive', 1)
})


const router = useRouter()
const route = useRoute()
</script>

<style scoped lang="less">

</style>